package com.tianming.wy.model.cmn;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tianming.wy.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * Menu
 * </p>
 *
 * @author qy
 */
@Data
@ApiModel(description = "菜单")
@TableName("menu")
public class Menu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "标题")
    @TableField("meta_title")
    private String metaTitle;

    @ApiModelProperty(value = "图标")
    @TableField("meta_icon")
    private String metaIcon;

    @ApiModelProperty(value = "是否显示元信息")
    @TableField("meta_show")
    private Boolean metaShow;

    @ApiModelProperty(value = "组件名")
    @TableField("component")
    private String component;

    @ApiModelProperty(value = "地址")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "重定向地址")
    @TableField("redirect")
    private String redirect;

    @ApiModelProperty(value = "是否包含子节点")
    @TableField(exist = false)
    private boolean hasChildren;

}
